package cn.ad.server.domain.enumration;

/**
 * 请求处理结果状态码
 * @author dongbin.yu
 * @from 2016-07-06
 * @since V1.0
 */
public enum ResponseStatusCode {

    SUCCESS(0,"成功"),
    UNKNOWN_INNER_ERROR(10000, "无法识别的系统内部错误."),
    INVALID_REQ_PARAMETER(10001, "无效的请求参数."),
    RES_NOTFOUND_GUID(10101, "GUID对象没有找到."),
	CLICK_OVER_LIMIT_OF_GUID(10102,"超过guid的点击限制"),
	IMPRESSION_OVER_LIMIT_OF_GUID(10103,"超过guid的展示限制"),
	CLICK_OVER_LIMIT_OF_USERACREATIVE(10104,"超过用户设备加创意的点击限制"),
	IMPRESSION_OVER_LIMIT_OF_USERACREATIVE(10105,"超过用户设备加创意的展示限制"),
	WIN_PRICE_PARSE_ERROR(10106,"winPrice无效或解析失败"),
	INVALID_STRATEGY(6,"无效的策略");
	
    ResponseStatusCode(int value, String message) {
        this.value = value;
        this.message = message;
    }

    private int value;

    private String message;

    public int value(){
    	return value;
    }
    
    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
